/*
 * @Author: ShengXD <1519256482@qq.com>
 * @Date: 2024-11-06 11:09:25
 * @LastEditors: ShengXD <1519256482@qq.com>
 * @LastEditTime: 2024-11-11 16:45:12
 * @FilePath: /zonmind-om/apps/app/src/router/routes/core.ts
 * @Description: 
 */
import type { RouteRecordRaw } from 'vue-router';

import { DEFAULT_HOME_PATH, LOGIN_PATH } from '@vben/constants';
import { $t } from '#/locales';

/** 全局404页面 */
const fallbackNotFoundRoute: RouteRecordRaw = {
  component: () => import('#/views/fallback/404.vue'),
  meta: {
    hideInBreadcrumb: true,
    hideInMenu: true,
    hideInTab: true,
    title: '404',
  },
  name: 'FallbackNotFound',
  path: '/:path(.*)*',
};

/** 基本路由，这些路由是必须存在的 */
const coreRoutes: RouteRecordRaw[] = [
  {
    meta: {
      title: 'Root',
    },
    name: 'Root',
    path: '/',
    redirect: DEFAULT_HOME_PATH,
  },
  {
    meta: {
      hideInTab: true,
      title: 'Authentication',
    },
    name: 'Authentication',
    path: '/login',
    component: () => import('#/views/authentication/login.vue'),
  },
];

export { coreRoutes, fallbackNotFoundRoute };
